package com.wxj.shopping_mall;

import java.math.BigDecimal;
import java.util.UUID;

public class Test {

    public static void main(String[] args) {
//        long startTime = System.currentTimeMillis();
//        String s = UUID.randomUUID().toString().substring(0,6);
//        long endTime = System.currentTimeMillis();
//        System.out.println("处理时间为：" + (endTime - startTime));
//        System.out.println("UUID为：" + s);
//        startTime = System.currentTimeMillis();
//        s = UUID.randomUUID().toString();
//        endTime = System.currentTimeMillis();
//        System.out.println("处理时间为：" + (endTime - startTime));
//        System.out.println("UUID为：" + s);
        BigDecimal decimal = new BigDecimal(-100);
        System.out.println("数值为(取反)：" + decimal.negate());
        System.out.println("数值为：" + decimal);
    }

}
